// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Blueprint/UserWidget.h"
#include "ItemUIBlock.h"
#include "MainInventoryUI.generated.h"

/**
 * 
 */
UCLASS()
class ISALONG2_API UMainInventoryUI : public UUserWidget
{
	GENERATED_BODY()
	
public:

	UFUNCTION(BlueprintImplementableEvent, Category = "UIInput")
	void OnInventoryShow();
	
	UFUNCTION(BlueprintImplementableEvent, Category = "UIInput")
	void OnInventoryHide();

	UFUNCTION(BlueprintImplementableEvent,BlueprintCallable, Category = "UIInput")
	void OnInventoryChangePage(int32 page);

	UFUNCTION(BlueprintCallable, Category = "UIInput")
	TArray<FItemUIBlock> GetBagDatas();

	UFUNCTION(BlueprintCallable, Category = "UIInput")
	FString GetItemFStringNameByID(int32 id);

	UFUNCTION(BlueprintCallable, Category = "UIInput")
	FItemDisplay GetItemDisplayDataById(int32 id);

	UFUNCTION(BlueprintCallable, Category = "UIInput")
	void RemoveFromCharacterBag(int32 id, int32 count);

	UFUNCTION(BlueprintCallable, Category = "UIInput")
	void AddToCharacterBag(int32 id, int32 count);

	UFUNCTION(BlueprintCallable, Category = "UIInput")
	void DropItemFromCharacterBag(int32 id, int32 count);

};
